package com.xianxiaohui.abstractfactory;

import com.xianxiaohui.abstractfactory.fastfactory.FastFactory;
import com.xianxiaohui.abstractfactory.service.AbstractFactory;
import com.xianxiaohui.abstractfactory.service.HtmlDocument;

public class Main {
    public static void main(String[] args) {
        AbstractFactory fastFactory = new FastFactory();
        HtmlDocument fastDocument = fastFactory.createHtml("#Hello\nThis is a xx");

        System.out.println(fastDocument.toHtml());

    }
}
